﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.DynamicData;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


/// <summary>
/// Summary description for Product
/// </summary>


namespace ITPCTaxFormModel
{
    [MetadataType(typeof(ProductMetadata))]
    
    public partial class Product
    {
        public class ProductMetadata
        {
            [Timestamp]
            public object ModifiedDate{ get; set; }        
            [Required]
            
            public object ProductCategory;
            [Required]
            [RegularExpression("^[^ ]{4,12}[^ ]*$", ErrorMessage = "Mã HS không đúng định dạng!")]
            public object ProductCode;
            [StringLength(1000)]
            [DisplayFormat(HtmlEncode = false)]
            public object Description;
            [DisplayFormat(HtmlEncode = false)]
            public object Unit;
        }

    }

}